package com.mnsq.common.dao;

import com.mnsq.common.bean.entity.user.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author Administrator
 * @date 2019/3/18 0018
 */
public interface UserRepository extends JpaRepository<User, Long> {

    User findUserByUnique(String unique);

    Page<User> findUserByPetNameLike(String petName, Pageable pageable);
}
